package com.meteor.downloader.videodownloader.mdmdata


import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = true)
data class DataLinkValueMdm(
    @Json(name = "author")
    val mdmAuthor: String?,
    @Json(name = "duration")
    val mdmDuration: Any?,
    @Json(name = "error")
    val mdmError: Boolean?,
    @Json(name = "medias")
    val mdmMedias: List<Media>?,
    @Json(name = "source")
    val mdmSource: String?,
    @Json(name = "thumbnail")
    val mdmThumbnail: String?,
    @Json(name = "title")
    val mdmTitle: String?,
    @Json(name = "type")
    val mdmType: String?,
    @Json(name = "url")
    val mdmUrl: String?
) {
    @JsonClass(generateAdapter = true)
    data class Media(
        @Json(name = "extension")
        val mdmExtension: String?,
        @Json(name = "quality")
        val mdmQuality: String?,
        @Json(name = "type")
        val mdmType: String?,
        @Json(name = "url")
        val mdmUrl: String?,
        @Json(name = "thumbnail")
        val mdmThumbnail: String?,
    )
}